package com.example.aircraftwar.codes.aircraft;

import android.content.Context;

import com.example.aircraftwar.codes.activity.GameActivity;
import com.example.aircraftwar.codes.prop.AbstractProp;
import com.example.aircraftwar.codes.strategy.ShootStrategy;

import java.util.List;

public abstract class BaseEnemyAircraft extends AbstractAircraft{

    public BaseEnemyAircraft(Context context, int locationX, int locationY, int speedX, int speedY, int hp, ShootStrategy shootStrategy) {
        super(context, locationX, locationY, speedX, speedY, hp, shootStrategy);
    }

    @Override
    public void forward() {
        super.forward();
        // 判定 y 轴向下飞行出界
        if (locationY >= GameActivity.WINDOW_HEIGHT ) {
            vanish();
        }
    }

    public abstract int getScoreAdd(int score);

    public abstract List<AbstractProp> produceProp();


}
